//
//  RSSItem.m
//  tv3rss
//
//  Created by Job Search on 01/08/14.
//  Copyright (c) 2014 responsfabrikken. All rights reserved.
//

#import "RSSItem.h"

@implementation RSSItem

-(BOOL) isTagName:(NSString *) tagName{
    if([tagName isEqualToString:@"item"]){
        return YES;
    }else{
        return NO;
    }
}

-(BOOL) containsElementName:(NSString *) elementName{
    //silly fix - but description is a part of NSObject it seems...
    if([self respondsToSelector:NSSelectorFromString(elementName)] && ![elementName isEqualToString:@"description"]){
        return YES;
    }else{
        return NO;
    }
}

@end
